Skip to content

Fix port offset cutting off text after the port - #48463

Merged
serra-fastly merged 4 commits into
mainfrom
serra/port-offset
Oct 29, 2026
Merged

serra-fastly merged 4 commits into
mainfrom
serra/port-offset

Conversation

@serra-fastly

Copy link
Copy Markdown
Contributor

When applying port_offset to a tcp:// address, Settings passed QString::replace() the port's end position instead of its length, so it also deleted text after the port. For example, with a port_offset of 1, tcp://host:5560/abcdefghijklmnop became tcp://host:5561klmnop. Addresses that end at the port aren't affected.

This change passes the port's length instead, and continues searching after the new port.

Tested locally

@serra-fastly
serra-fastly requested a review from a team October 27, 2026 21:51
@serra-fastly
serra-fastly merged commit a2ec76b into main Oct 29, 2026
21 checks passed
@serra-fastly
serra-fastly deleted the serra/port-offset branch October 29, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants